﻿
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    /// 分站表
    /// </summary>
    [SugarTable("xrc_group", TableDescription = "分站表")]
    public partial class XrcGroup
    {
        /// <summary>
        /// 分站表
        /// </summary>
        public XrcGroup()
        {
        }

        /// <summary>
        /// 分站id
        /// </summary>
        [Display(Name = "分站id")]
        [SugarColumn(ColumnDescription = "分站id", IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public System.Int32 id { get; set; }


        /// <summary>
        /// 名称
        /// </summary>
        [Display(Name = "名称")]
        [SugarColumn(ColumnDescription = "名称", IsNullable = true)]
        [StringLength(100, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.String name { get; set; }


        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name = "状态")]
        [SugarColumn(ColumnDescription = "状态", IsNullable = true)]
        [StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public System.Byte state { get; set; }
      
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [SugarColumn(ColumnDescription = "创建时间")]
        [Required(ErrorMessage = "请输入{0}")]
        public System.DateTime add_time { get; set; }
       
    }
}